//
//  HTHomeAdView.swift
//  MagaCore
//
//  Created by 罗林轩 on 2024/8/29.
//  Copyright © 2024 HT. All rights reserved.
//

import SwiftUI

struct HTAdView: View {
    var body: some View {
            VStack {
                Text("GET PREMIUM TO REMOVE ADS")
                    .ht_commonTextStyle(color: Color(hex: "222222"), fontSize: 15, weight: .bold)
                    .padding(10)
                    .frame(maxWidth: .infinity)
                    .background(LinearGradient(colors: [Color(hex: "edc391"),Color(hex: "fdddb7")], startPoint: .leading, endPoint: .trailing))
                    .cornerRadius(5, corners: .allCorners)
                
                Text("CANCEL")
                    .ht_commonTextStyle(color: Color(hex: "222222"), fontSize: 15, weight: .bold)
                    .padding(10)
                    .frame(maxWidth: .infinity)
                    .background(Color(hex: "4f40bd"))
                    .cornerRadius(5, corners: .allCorners)
            }
            .padding(.horizontal,20)
            .frame(width: var_screenWidth * 0.8)
        }
}

#Preview {
    HTAdView()
}
